<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>响应式布局案例</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .one{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-top: 10px;
            margin-left: 10px;
        }
        .left{
            width: 49%;
        }
        .left img{
            width: 100%;
        }
        .right{
            width: 49%;
            display: flex;
            justify-content: space-between;
        }
        .right div{
            width: 49%;
            display: flex;
        }
        .right div img{
            width:100%;
        }

        .twice{
            display: flex;
            flex-wrap: wrap;
            margin-top: 10px;
            margin-left: 10px;
            justify-content: space-between;
        }
        .twice div{
            width: 24%;
            box-shadow: 0 0 5px gray;
            margin-bottom: 10px;
        }
        .twice div>img{
            width: 100%;
        }

        @media screen and (max-width:768px){
            .one>div{
                width:100%;
            } 
        }
        @media screen and (min-width:768px) and (max-width:1024px){
            .twice>div{
                width:100%;
            } 
        }
        @media screen and (min-width:768px) and (max-width:1024px){
            .twice>div{
                width: 32%;
            }   
        }
        @media screen and (min-width:450px) and (max-width:768px){
            .twice>div{
                width: 49%;
            }   
        }
        @media screen and (max-width:450px){
            .twice>div{
                width: 99%;
            }   
        }
        
    </style>
</head>
<body>
    <div class="one">
        <div class="left">
            <img src="./image/xy1.jpeg" alt="">
        </div>
        <div class="right">
            <div>
                <img src="./image/xy2.png" alt="">
            </div>
            <div>
                <img src="./image/xy3.png" alt="">
            </div>
        </div>
    </div>
    <div class="twice">
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
        <div>
            <img src="./image/xy4.jpg" alt="">
            <p>迷你微型摄影展</p>
            <p>2022-2-22</p>
            <p>作者：tom</p>
        </div>
    </div>
</body>
</html>